/*
 * @Autor Wei
 * @Date 2020-04-16 14:31:09
 * @LastEditors Wei
 * @LastEditTime 2020-07-07 22:06:19
 */
import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [{
    path: "/",
    name: "Login",
    meta: {
      title: "用户登录"
    },
    component: () => import("@/views/login/login.vue")
  },
  {
    path: "/forget",
    name: "Forget",
    meta: {
      title: "忘记密码"
    },
    component: () => import("@/views/login/forget.vue")
  },
  {
    path: "/home",
    name: "Home",
    meta: {
      title: "首页",
      keepAlive: true
    },
    component: () => import("@/views/homePage/home.vue")
  },
  {
    path: "/zhuhaiPortCircle",
    name: "ZhuhaiPortCircle",
    meta: {
      title: "珠海港圈",
      keepAlive: true
    },
    component: () => import("@/views/zhuhaiPortCircle")
  },
  {
    path: "/workVoting",
    name: "workVoting",
    meta: {
      title: "工作投票",
      keepAlive: true
    },
    component: () => import("@/views/workVoting")
  },
  {
    path: "/resourceSharing",
    name: "resourceSharing",
    meta: {
      title: "资源共享",
      keepAlive: true
    },
    component: () => import("@/views/resourceSharing")
  },
  {
    path: "/personalCenter",
    name: "personalCenter",
    meta: {
      title: "个人中心",
      keepAlive: true
    },
    component: () => import("@/views/personalCenter")
  },
  {
    path: "/help",
    name: "Help",
    meta: {
      title: "互帮互助",
      keepAlive: true
    },
    component: () => import("@/views/help")
  },
  {
    path: "/proposal",
    name: "Proposal",
    meta: {
      title: "创新建议",
      keepAlive: true
    },
    component: () => import("@/views/proposal")
  },
  {
    path: "/proposalDetails",
    name: "ProposalDetails",
    meta: {
      title: "创新建议"
    },
    component: () => import("../views/proposalDetails")
  },
  {
    path: "/helpDetails",
    name: "HelpDetails",
    meta: {
      title: "互帮互助"
    },
    component: () => import("@/views/helpDetails")
  },
  {
    path: "/EditPersonalInformation",
    name: "EditPersonalInformation",
    meta: {
      title: "编辑个人信息"
    },
    component: () => import("@/views/EditPersonalInformation")
  },
  {
    path: "/IntegralMall",
    name: "IntegralMall",
    meta: {
      title: "积分商城"
    },
    component: () => import("@/views/IntegralMall")
  },
  {
    path: "/productDetails",
    name: "productDetails",
    meta: {
      title: "商品信息"
    },
    component: () => import("@/views/productDetails")
  },
  {
    path: "/Exchange",
    name: "Exchange",
    meta: {
      title: "兑换商品"
    },
    component: () => import("@/views/Exchange")
  },
  {
    path: "/ExchangeProcess",
    name: "ExchangeProcess",
    meta: {
      title: "兑换流程"
    },
    component: () => import("@/views/ExchangeProcess")
  },
  {
    path: "/write",
    name: "Editor",
    meta: {
      title: "文章编辑"
    },
    component: () => import("@/views/textWrite")
  },
  {
    path: "/editor",
    name: "Editor",
    meta: {
      title: "文章编辑"
    },
    component: () => import("@/views/textEdit")
  },
  {
    path: "/register",
    name: "Register",
    meta: {
      title: "用户注册"
    },
    component: () => import("@/views/login/register.vue")
  },
  {
    path: "/zhuhaiPortCircleDetails",
    name: "ZhuhaiPortCircleDetails",
    meta: {
      title: "珠海港圈"
    },
    component: () => import("@/views/zhuhaiPortCircleDetails")
  },
  {
    path: "/ExchangeDetail",
    name: "ExchangeDetail",
    meta: {
      title: "兑换详情"
    },
    component: () => import("@/views/ExchangeDetail")
  },
  {
    path: "/writeQuestion",
    name: "WriteQuestion",
    meta: {
      title: "提问"
    },
    component: () => import("@/views/askAquestion/write")
  },
  {
    path: "/editQuestion",
    name: "EditQuestion",
    meta: {
      title: "提问"
    },
    component: () => import("@/views/askAquestion/edit")
  },
  {
    path: "/writeAnswer",
    name: "WriteAnswer",
    meta: {
      title: "回答"
    },
    component: () => import("../views/answerTheQuestion/write")
  },
  {
    path: "/editAnswer",
    name: "EditAnswer",
    meta: {
      title: "回答"
    },
    component: () => import("../views/answerTheQuestion/edit")
  },
  {
    path: "/writeResources",
    name: "WriteResources",
    meta: {
      title: "资源共享"
    },
    component: () => import("../views/uploadingResources/write")
  },
  {
    path: "/editResources",
    name: "EditResources",
    meta: {
      title: "资源共享"
    },
    component: () => import("../views/uploadingResources/edit")
  },
  {
    path: "/otherPerson",
    name: "otherPerson",
    meta: {
      title: "资源共享"
    },
    component: () => import("@/views/otherPerson")
  },
  {
    path: "/resourceSharingDetails",
    name: "ResourceSharingDetails",
    meta: {
      title: "资源共享"
    },
    component: () => import("../views/resourceSharingDetails")
  },
  {
    path: "/Voting",
    name: "Voting",
    meta: {
      title: "工作投票"
    },
    component: () => import("../views/Voting")
  },
  {
    path: "/Question",
    name: "Question",
    meta: {
      title: "问卷调查"
    },
    component: () => import("../views/Question")
  },
  {
    path: "/onlineArticleEditing",
    name: "OnlineArticleEditing",
    meta: {
      title: "文章编辑"
    },
    component: () => import("../views/onlineEditing/article/index")
  },
  {
    path: "/onlineProposalEditing",
    name: "OnlineProposalEditing",
    meta: {
      title: "文章编辑"
    },
    component: () => import("../views/onlineEditing/proposal/index")
  },
  {
    path: "/onlineResourceEditing",
    name: "OnlineResourceEditing",
    meta: {
      title: "文章编辑"
    },
    component: () => import("../views/onlineEditing/resource/index")
  },
  {
    path: "/onlineAnswerEditing",
    name: "OnlineAnswerEditing",
    meta: {
      title: "文章编辑"
    },
    component: () => import("../views/onlineEditing/answer/index")
  },
  {
    path: "/search",
    name: "Search",
    meta: {
      title: "搜索",
      keepAlive: true
    },
    component: () => import("../views/searchView")
  },
  {
    path: "/addVoting",
    name: "addVoting",
    meta: {
      title: "新增投票"
    },
    component: () => import("../views/addVoting")
  },
  {
    path: "/addquestion",
    name: "addquestion",
    meta: {
      title: "新增问卷"
    },
    component: () => import("../views/addquestion")
  },
  {
    path: "/question_kid",
    name: "question_kid",
    meta: {
      title: "查看问卷"
    },
    component: () => import("../views/question_kid")
  },
  {
    path: "/writeProposal",
    name: "WriteProposal",
    meta: {
      title: "创新建议"
    },
    component: () => import("../views/writeProposal/textWrite/index.vue")
  },
  {
    path: "/editProposal",
    name: "EditProposal",
    meta: {
      title: "创新建议"
    },
    component: () => import("../views/writeProposal/textEdit/index.vue")
  },
];

const router = new VueRouter({
  routes
});

export default router;